﻿@{
    Layout = "~/Views/Shared/_AddEdit.cshtml";
}
<div class="poppan">
    <input type="hidden" name="_cId" value="@ViewBag.data["cid"].ToString()" />
    <table>
        <tr>
            <td nowrap>姓名*</td>
            <td><input type="text" name="_linkName" autocomplete="off" class="layui-input" value="@ViewBag.data["linkName"]"></td>
        </tr>
        <tr>
            <td>宝宝小名</td>
            <td><input type="text" name="_kidsName" autocomplete="off" class="layui-input" value="@ViewBag.data["kidsName"]"></td>
        </tr>
        <tr>
            <td>联系电话</td>
            <td><input type="text" name="_LinkTel" autocomplete="off" class="layui-input" value="@ViewBag.data["LinkTel"]"></td>
        </tr>
        <tr>
            <td>性别</td>
            <td>
                <input type="radio" name="_sex" value="男" title="男" @(ViewBag.data["sex"] == "男" ? "checked" : "")>
                <input type="radio" name="_sex" value="女" title="女" @(ViewBag.data["sex"] == "女" ? "checked" : "")>
            </td>
        </tr>       
        <tr>          
            <td>是否小孩</td>
            <td>
                <input type="radio" name="_IsKids" value="1" title="是" @(ViewBag.data["IsKids"] == 1 ? "checked" : "")>
                <input type="radio" name="_IsKids" value="0" title="否" @(ViewBag.data["IsKids"] == 0 ? "checked" : "")>
            </td>
        </tr>
        <tr>            
            <td>关系</td>
            <td>
                <select name="_linkRelation">
                    @foreach (var dr in ViewBag.dict["LinkRelation"])
                    {
                        <option value="@dr.Key" @(dr.Key == ViewBag.data["LinkRelation"].ToString() ? "selected" : "")>@dr.Value</option>
                    }
                </select>
            </td>
        </tr>
        
    </table>
</div>
